import request from '@/utils/request'

// 查询知识留言列表
export function listKnowledgeComment(query) {
  return request({
    url: '/system/knowledgeComment/list',
    method: 'get',
    params: query
  })
}

// 查询知识留言详细
export function getKnowledgeComment(id) {
  return request({
    url: '/system/knowledgeComment/' + id,
    method: 'get'
  })
}

// 新增知识留言
export function addKnowledgeComment(data) {
  return request({
    url: '/system/knowledgeComment',
    method: 'post',
    data: data
  })
}

// 修改知识留言
export function updateKnowledgeComment(data) {
  return request({
    url: '/system/knowledgeComment',
    method: 'put',
    data: data
  })
}

// 删除知识留言
export function delKnowledgeComment(id) {
  return request({
    url: '/system/knowledgeComment/' + id,
    method: 'delete'
  })
}
